#ifndef _DATA_ADAPTER_
#define _DATA_ADAPTER_

#include "publictype.h"

#define CLOCKWISE       0
#define ANTICLOCKWISE   1

DLL_API BOOL STDCALL ValidPointY(_iq8 iptY, ImageInfo* image);
DLL_API BOOL STDCALL ValidPointX(_iq8 iptX, ImageInfo* image);
DLL_API BOOL STDCALL ValidPoint(PointCoord ptInImg, ImageInfo* image);

DLL_API BOOL STDCALL ValidLineObj(LineObj* line, ImageInfo* image);
DLL_API BOOL STDCALL ValidArcObj(ArcObj* arc, ImageInfo* image);
DLL_API BOOL STDCALL ValidCircleObj(CircleObj* circle, ImageInfo* image);
DLL_API BOOL STDCALL ValidRectObj(RectObj* rect, ImageInfo* image);
DLL_API BOOL STDCALL ValidArcLoopObj(ArcLoopObj* arcLoop, ImageInfo* image);
DLL_API BOOL STDCALL ValidCircleLoopObj(CircleLoopObj* circleLoop, ImageInfo* image);

DLL_API short STDCALL CreateArcObj(ArcObj* arc, _iq8 deltaRadius, ArcObj* outArc);

BOOL ValidArcObj_Clockwise(PointCoord circlePoint, _iq8 radius, _iq8 fromAngle, _iq8 toAngle, ImageInfo* image);
BOOL ValidArcObj_AntiClockwise(PointCoord circlePoint, _iq8 radius, _iq8 fromAngle, _iq8 toAngle, ImageInfo* image);

#ifdef UPPROCESS
#ifndef DATAADAPTER_IMPLEMENT
#pragma comment(lib,"..\\..\\..\\PUBLIC\\SOFT\\DataAdapter.lib")
#endif
#endif

#endif _DATA_ADAPTER_